﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SToplist extends Object
    {
        public var serverId:int;
        public var proxyId:int;
        public var version:int;
        public var createDt:Date;
        public var toplistType:int;
        public var rank:int;
        public var lastRank:int;
        public var entityId:int;
        public var entityName:String;
        public var entityUid:String;
        public var ownerId:int;
        public var ownerName:String;
        public var vip:int;
        public var yyPurple:int;
        public var propertyOne:int;
        public var propertyTwo:int;
        public var propertyThree:int;
        public var valueOne:Number;
        public var valueTwo:Number;
        public var valueThree:Number;
        public var reverse1:int;
        public var reverse2:int;
        public var proxyJs:String;

        public function SToplist()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.serverId);
            param1.writeInt(this.proxyId);
            param1.writeInt(this.version);
            param1.writeDate(this.createDt);
            param1.writeInt(this.toplistType);
            param1.writeInt(this.rank);
            param1.writeInt(this.lastRank);
            param1.writeInt(this.entityId);
            param1.writeString(this.entityName);
            param1.writeString(this.entityUid);
            param1.writeInt(this.ownerId);
            param1.writeString(this.ownerName);
            param1.writeInt(this.vip);
            param1.writeInt(this.yyPurple);
            param1.writeInt(this.propertyOne);
            param1.writeInt(this.propertyTwo);
            param1.writeInt(this.propertyThree);
            param1.writeLong(this.valueOne);
            param1.writeLong(this.valueTwo);
            param1.writeLong(this.valueThree);
            param1.writeInt(this.reverse1);
            param1.writeInt(this.reverse2);
            param1.writeString(this.proxyJs);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.serverId = param1.readInt();
            this.proxyId = param1.readInt();
            this.version = param1.readInt();
            this.createDt = param1.readDate();
            this.toplistType = param1.readInt();
            this.rank = param1.readInt();
            this.lastRank = param1.readInt();
            this.entityId = param1.readInt();
            this.entityName = param1.readString();
            this.entityUid = param1.readString();
            this.ownerId = param1.readInt();
            this.ownerName = param1.readString();
            this.vip = param1.readInt();
            this.yyPurple = param1.readInt();
            this.propertyOne = param1.readInt();
            this.propertyTwo = param1.readInt();
            this.propertyThree = param1.readInt();
            this.valueOne = param1.readLong();
            this.valueTwo = param1.readLong();
            this.valueThree = param1.readLong();
            this.reverse1 = param1.readInt();
            this.reverse2 = param1.readInt();
            this.proxyJs = param1.readString();
            return;
        }// end function

    }
}
